﻿package game.fileloader {
	import flash.events.Event;
	import flash.utils.ByteArray;
	
	public class FileLoaderEvent extends Event {
		
		public static const LOADED:String		= "file.loaded";
		public static const ERROR:String		= "file.error";
		
		public var content:ByteArray;
		public var params:Object;
		
		public function FileLoaderEvent($type:String, params:Object, content:ByteArray, $bubbles:Boolean = false, $cancelable:Boolean = false) {
			super($type, $bubbles, $cancelable);
			this.content = content;
			this.params = params;
		}

		public override function toString():String {
			return formatToString("FileLoaderEvent", "params", "content", "type", "bubbles", "cancelable");
		}

	}
}